.class public Lcom/instagram/android/receiver/C2DMReceiver;
.super Lcom/instagram/android/c2dm/a;
.source "C2DMReceiver.java"


# instance fields
.field private a:Landroid/os/Handler;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 30
    const-string v0, "1006803734412"

    invoke-direct {p0, v0}, Lcom/instagram/android/c2dm/a;-><init>(Ljava/lang/String;)V

    .line 31
    return-void
.end method

.method public static b(Landroid/content/Context;)V
    .locals 1
    .parameter

    .prologue
    .line 90
    const-string v0, "1006803734412"

    invoke-static {p0, v0}, Lcom/instagram/android/c2dm/b;->a(Landroid/content/Context;Ljava/lang/String;)V

    .line 93
    return-void
.end method


# virtual methods
.method public a(Landroid/content/Context;)V
    .locals 2
    .parameter

    .prologue
    .line 80
    const-string v0, "C2DMReceiver"

    const-string v1, "Unregistered"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 82
    invoke-super {p0, p1}, Lcom/instagram/android/c2dm/a;->a(Landroid/content/Context;)V

    .line 83
    return-void
.end method

.method protected a(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 47
    const-string v0, "InstagramC2DMReceiver"

    invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v1

    const-string v2, "data"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 52
    invoke-static {}, Lcom/instagram/android/activity/NewsActivityInTab;->n()V

    .line 54
    invoke-static {}, Lcom/instagram/android/c2dm/k;->a()Lcom/instagram/android/c2dm/k;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/receiver/C2DMReceiver;->a:Landroid/os/Handler;

    invoke-virtual {v0, p1, p2, v1}, Lcom/instagram/android/c2dm/k;->a(Landroid/content/Context;Landroid/content/Intent;Landroid/os/Handler;)V

    .line 55
    return-void
.end method

.method public a(Landroid/content/Context;Ljava/lang/String;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 64
    const-string v0, "C2DMReceiver"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Received error "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 65
    return-void
.end method

.method public b(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 59
    invoke-static {}, Lcom/instagram/android/c2dm/k;->a()Lcom/instagram/android/c2dm/k;

    move-result-object v0

    invoke-virtual {v0, p2}, Lcom/instagram/android/c2dm/k;->a(Landroid/content/Intent;)V

    .line 60
    return-void
.end method

.method public b(Landroid/content/Context;Ljava/lang/String;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 70
    const-string v0, "C2DMReceiver"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Registered "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 71
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/instagram/android/service/PushRegistrationService;

    invoke-direct {v0, p1, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 72
    const-string v1, "com.instagram.android.service.PushRegistrationService.DEVICE_TOKEN"

    invoke-virtual {v0, v1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 73
    invoke-virtual {p0, v0}, Lcom/instagram/android/receiver/C2DMReceiver;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    .line 74
    invoke-super {p0, p1, p2}, Lcom/instagram/android/c2dm/a;->b(Landroid/content/Context;Ljava/lang/String;)V

    .line 75
    return-void
.end method

.method public onCreate()V
    .locals 1

    .prologue
    .line 35
    invoke-super {p0}, Lcom/instagram/android/c2dm/a;->onCreate()V

    .line 37
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/receiver/C2DMReceiver;->a:Landroid/os/Handler;

    .line 38
    return-void
.end method
